<?php
include 'reportFunction.php';
$type = $_GET['type'];
$f = new reportFunction();
if ($type=='TopBar'){
	echo json_encode($f->getTopBarData());
}else if ($type=='BottomBar'){
    echo json_encode($f->getBottomBarData());
}else if ($type == 'TopPie'){
    echo json_encode($f->getTopPieData());
}else if ($type == 'BottomPie'){
    echo json_encode($f->getBottomPieData());
}else if($type == 'Line'){
    echo json_encode($f->getLineData());
}
else if($type == 'YesterdayData'){
    echo json_encode($f->getYesterdayData());
}
else if($type == 'TodaydayData'){
    echo json_encode($f->getTodayData());
}
else if($type == 'MonthData'){
    echo json_encode($f->getMonthData());
}
else if($type == 'YearData'){
    echo json_encode($f->getYearData());
}
else if($type == 'YearTopData'){
    echo json_encode($f->getYearTop());
}
else if($type == 'DayTopData'){
    echo json_encode($f->getTodayTop());
}
else if($type == 'YesterdayTopData'){
    echo json_encode($f->getYesterdayTop());
}
?>